package com.ruoyi.common.exception;

import com.alibaba.fastjson2.JSONObject;
import lombok.Getter;

/**
 * 寄存器处理异常类
 */
@Getter
public class RegisterProcessingException extends Exception {
    private final String deviceId;
    private final JSONObject jsonData;

    public RegisterProcessingException(String message, String deviceId, JSONObject jsonData) {
        super(message);
        this.deviceId = deviceId;
        this.jsonData = jsonData;
    }

    public RegisterProcessingException(String message, String deviceId, JSONObject jsonData, Throwable cause) {
        super(message, cause);
        this.deviceId = deviceId;
        this.jsonData = jsonData;
    }

}
